import java.util.Scanner;

public class Learn12 {

        public static int max(int x,int y){
            return x > y?x:y;
        }
        public static double max(double x,double y){
            return x > y?x:y;
        }

        public static  double max(double x,double y,double z){
            return x > max(y,z)?x:max(y,z);
        }

        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            System.out.println("请输入两个整数");
            int a = scanner.nextInt();
            int b = scanner.nextInt();
            int ret1 = max(a,b);
            System.out.println(ret1);
            System.out.println("请输入三个小数");
            double c = scanner.nextDouble();
            double d = scanner.nextDouble();
            double e = scanner.nextDouble();
            double ret2 = max(c,d,e);
            System.out.println(ret2);
        }
}


